package com.devframe.sysbase.model.base;

import java.io.Serializable;

import com.devframe.sysbase.model.*;

/**
 * This is an object that contains data related to the T_SYS_PARAMETER table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="T_SYS_PARAMETER"
 */

public abstract class BaseTSysParameter  implements Serializable {

	public static String REF = "TSysParameter";
	public static String PROP_PARAM_INFO = "paramInfo";
	public static String PROP_SORT_NO = "sortNo";
	public static String PROP_PARAM_NAME = "paramName";
	public static String PROP_PARAM_GROUP = "paramGroup";
	public static String PROP_PARAM_VALUE = "paramValue";
    public static String PROP_PARAM_CODE = "paramCode";
    public static String PROP_NEED_ENCRYPT = "needEncrypt";


	// constructors
	public BaseTSysParameter () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTSysParameter (java.lang.String paramCode) {
		this.setParamCode(paramCode);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String paramCode;

	// fields
	private java.lang.String paramName;
	private java.lang.String paramInfo;
    private java.lang.String paramValue;
    private java.lang.String needEncrypt;
	private java.lang.Long sortNo;

	// many to one
	private java.lang.String paramGroup;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid.hex"
     *  column="PARAM_CODE"
     */
	public java.lang.String getParamCode () {
		return paramCode;
	}

	/**
	 * Set the unique identifier of this class
	 * @param paramCode the new ID
	 */
	public void setParamCode (java.lang.String paramCode) {
		this.paramCode = paramCode;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: PARAM_NAME
	 */
	public java.lang.String getParamName () {
		return paramName;
	}

	/**
	 * Set the value related to the column: PARAM_NAME
	 * @param paramName the PARAM_NAME value
	 */
	public void setParamName (java.lang.String paramName) {
		this.paramName = paramName;
	}



	/**
	 * Return the value associated with the column: PARAM_INFO
	 */
	public java.lang.String getParamInfo () {
		return paramInfo;
	}

	/**
	 * Set the value related to the column: PARAM_INFO
	 * @param paramInfo the PARAM_INFO value
	 */
	public void setParamInfo (java.lang.String paramInfo) {
		this.paramInfo = paramInfo;
	}



	/**
	 * Return the value associated with the column: PARAM_VALUE
	 */
	public java.lang.String getParamValue () {
		return paramValue;
	}

	/**
	 * Set the value related to the column: PARAM_VALUE
	 * @param paramValue the PARAM_VALUE value
	 */
	public void setParamValue (java.lang.String paramValue) {
		this.paramValue = paramValue;
	}



	/**
	 * Return the value associated with the column: SORT_NO
	 */
	public java.lang.Long getSortNo () {
		return sortNo;
	}

	/**
	 * Set the value related to the column: SORT_NO
	 * @param sortNo the SORT_NO value
	 */
	public void setSortNo (java.lang.Long sortNo) {
		this.sortNo = sortNo;
	}



	/**
	 * Return the value associated with the column: PARAM_GROUP
	 */
	public java.lang.String getParamGroup () {
		return paramGroup;
	}

	/**
	 * Set the value related to the column: PARAM_GROUP
	 * @param paramGroup the PARAM_GROUP value
	 */
	public void setParamGroup (java.lang.String paramGroup) {
		this.paramGroup = paramGroup;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof TSysParameter)) return false;
		else {
			TSysParameter tSysParameter = (TSysParameter) obj;
			if (null == this.getParamCode() || null == tSysParameter.getParamCode()) return false;
			else return (this.getParamCode().equals(tSysParameter.getParamCode()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getParamCode()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getParamCode().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}

    public java.lang.String getNeedEncrypt() {
        return needEncrypt;
    }

    public void setNeedEncrypt(java.lang.String needEncrypt) {
        this.needEncrypt = needEncrypt;
    }


}